package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeEditPasswordDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    void save(EmployeeDTO employeeDTO);

    /**
     * 分页查询
     *
     * @return
     */
    PageResult poge(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 员工启用禁用接口
     * @param status
     * @param id
     */

    void updete(Integer status, Long id);



    /**
     * 根据id查询
     * @param id
     * @return
     */
    Employee selectid(Long id);

    /**
     * 修改员工
     * @param employeeDTO
     */
    void upde(EmployeeDTO employeeDTO);

    void editPassword(EmployeeEditPasswordDTO employeeEditPasswordDTO);
}
